package com.gdssoft.pdaweb;

import javax.annotation.Resource;

import org.junit.Test;

import com.gdssoft.BaseTestCase;
import com.gdssoft.pdaweb.model.AutoPlan;
import com.gdssoft.pdaweb.service.AutoPlanService;

public class AutoPlanServiceTestCase extends BaseTestCase {
	@Resource
	private AutoPlanService autoPlanService;
	
	@Test
	public void testGetOpenAutoPlan() {
		AutoPlan autoPlan1 = autoPlanService.getAmOpenAutoPlan(12L);
		System.out.println(autoPlan1);
	}
	
	public void testExecuteAutoPlan() {
		AutoPlan autoPlan = autoPlanService.get(468L);
		try {
			autoPlanService.executePlan(autoPlan);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
